//
// Created by v on 19-6-10.
//

#ifndef JKLIBS_CMOBSERVER_H
#define JKLIBS_CMOBSERVER_H

#include <list>

class CMObserver
{
  public:
    int registerObserver(CMObserver *obs);

    int unregisterObserver(CMObserver *obs);

    const std::list<CMObserver *> getObservers() { return m_objs; }

    int updateAll(void *args);

    virtual int statusChanged(void *args);

  private:
    std::list<CMObserver *> m_objs;
};

#endif // JKLIBS_CMOBSERVER_H
